.universal-data {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin: 0;
  padding: var(--spacing-lg);
}

.entity-group {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-small);
  background: var(--color-card-bg-transparent);
}

.group-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  flex: 1;
  flex-shrink: 0;
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.card-entity-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--spacing-md);
  width: 100%;
}

.card-entity-item {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--color-card-bg-transparent);
  border-radius: var(--border-radius-small);
  flex: 1;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: all 0.3s ease;
}

.card-entity-item.status-on {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.card-entity-item.status-on .entity-icon,
.card-entity-item.status-on .entity-info .label,
.card-entity-item.status-on .entity-info .value {
  color: white;
}

.card-entity-item.status-error {
  border-color: var(--color-error);
}

.card-entity-item.status-error .entity-info .value {
  color: var(--color-error);
}

.entity-icon {
  flex: 0 1 auto;
}

.entity-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  flex: 1;
}

.entity-info .label {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 2px;
}

.entity-info .value {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  white-space: nowrap;
  min-width: 60px;
  text-align: center;
}

/* 可点击实体的样式 */
.card-entity-item[onclick] {
  cursor: pointer;
}

.card-entity-item[onclick]:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px var(--color-shadow);
}

/* 响应式布局 */
@media (max-width: 768px) {
  .entity-group {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .group-name {
    margin-bottom: var(--spacing-sm);
  }

  .card-entity-items {
    width: 100%;
    justify-content: center;
  }

  .card-entity-item {
    min-width: 90px;
  }
}
